package oop.day03;

public class Student extends Person{
    int stuId;

    Student(){

    }
    Student(String name,int age,int stuId){
        super(name,age);
        this.stuId = stuId;
    }
    public void study(){
        System.out.println(name+" is studying.");
    }
    public void eat(){
        System.out.println("学号是"+stuId+"年龄是"+age+name+" is eating.");
    }
    public void sleep(){
        System.out.println("学号是"+stuId+"年龄是"+age+name+" is sleeping.");
    }
}
